package com.atguigu.jxc.controller;

import com.atguigu.jxc.entity.GoodsType;
import com.atguigu.jxc.service.GoodsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * @description 商品管理分类Controller层
 */
@RestController
@RequestMapping("/goodsType")
public class GoodsTypeController {
    @Autowired
    private GoodsTypeService goodsTypeService;

    //查询商品所有分类
    @PostMapping("loadGoodsType")
    public List loadGoodsType(){
       List list=goodsTypeService.loadGoodsType();
        return list;
    }
}
